<?php
/**
 * Created by PhpStorm.
 */

namespace backend\service;


use backend\component\BackendBaseService;
use backend\component\ResultEasyUIFormat;
use common\models\info\Album;
use backend\component\ResultFormat;

class AlbumService extends BackendBaseService
{
    public static function AlbumList($get,$page=1,$pageSize=10) {
        $model = new Album();
        $result = $model->getAllList($get,$page,$pageSize);
        if (count($result["rows"])) {
            foreach ($result["rows"] as $key=>$val) {
                $result["rows"][$key]["created_at"] = date("Y-m-d H:i",$val["created_at"]);
            }
        }
        return json_encode($result);
    }

}
